<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../admin/authority.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="headScriptAD.jsp"%>

<%
	java.util.Date date = new java.util.Date();
%>

<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/admin/cs81000script.js?tick=<% out.println(date.toString()); %>"></script>

</head>
<body>
	<div class="wrapper">
		<!-- BEGIN Top-Bar -->
		<%@ include file="../fragments/header.jsp"%>
		<!-- END Top-Bar -->

		<div id="detail-area" class="clearfix">
			<!-- BEGIN SIDEMENU -->
			<div class="hidden-xs hidden-sm page-sidebar" id="side-menu-bar">
				<ul class="page-sidebar-menu">					

					<!-- <div id="displaymenu"></div>  -->
					<%@ include file="../admin/menu.jsp" %>

				</ul>
			</div>
			<!-- End Side Menu -->

			<div class="col-sm-12 col-xs-12" id="right-side">
				<div id="navigator-bar">
					<i class="fa fa-home"></i> หน้าหลัก <i
						class="fa fa-angle-right ml-5 mr-5"> กำหนดวันที่ของระบบ</i>
				</div>
				<!--End navigator-bar-->			
<!-- ---------------------------------------------------------------------------------- -->
				<!-- Start detail-area -->
				<div id="page-header" class="clearfix">
					<div>กำหนดวันที่ของระบบ</div>
				</div>
				
				<!-- ### Error / Success Message ### -->
				<div id="success_message" class="alert alert-success hide"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-check fa-stack-1x fa-inverse"></i> </span><span id="content_sucess"></span></div>
				<div id="error_message" class="alert alert-danger hide"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-times fa-stack-1x fa-inverse"></i></span><span id="content_error"></span></div>
				
				<div class="form-detail clearfix">
					<form class="form-horizontal" role="form">
						<input type="hidden" id="url_address" name="url_address" value="">
						<input type="hidden" id="agent_browser" name="agent_browser" value="">
						<div id="form-1" class="form-step">
							<fieldset>
								<legend>ข้อมูลการกำหนดวันที่ของระบบ</legend>
								<div class="form-group">
									<div class="col-sm-12">
										<label for="" class="col-sm-4 control-label">วันที่ย้อนหลัง<span class="comment">*</span></label>
										<div class="input-group date col-sm-6">
											<input type='text' id='datetimepicker1' data-provide="datepicker" data-date-language="th-th" class="form-control" placeholder="วันที่ย้อนหลัง" value="" />
											<span class="input-group-addon" id="spanDatetimepicker1"><span class="glyphicon glyphicon-calendar"></span></span>
											<label class="col-sm-1">(DD/MM/YYYY)</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-12">
										<label for="" class="col-sm-4 control-label">วันที่หมดอายุ<span class="comment">*</span></label>
										<div class="input-group date col-sm-6">
											<input type='text' id='datetimepicker2' data-provide="datepicker" data-date-language="th-th" class="form-control" placeholder="วันที่หมดอายุ" value="" />
											<span class="input-group-addon" id="spanDatetimepicker2"><span class="glyphicon glyphicon-calendar"></span></span>
											<label class="col-sm-1">(DD/MM/YYYY)</label>
										</div>
									</div>						
								</div>
								
								<hr/>
								
								<div class="form-group">
									<div class="text-center">
										<input type="hidden" name="button_user" id="button_user" value="no">
										<button id="btnSave" type="button" class="btn btn-primary" ><i class="fa fa-floppy-o"></i> <span id="btnSaveSpan">บันทึก</span></button>
										<button type="button" class="btn btn-primary" onclick="window.location.reload()"><i class="glyphicon glyphicon-refresh"></i> <span>เริ่มใหม่</span></button>
									</div>
								</div>
								</fieldset>
							</div>
						</form>
				</div>
				
				<!-- ### Modal Popup ### -->
				<div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModal" aria-hidden="true">
				  	  <div class="modal-dialog">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">กรุณากรอกข้อมูลให้ถูกต้อง</h4>
				            </div>
				            <div class="modal-body">
				            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
				            	<span id="modal_content"></span>
				            </div>
				            <div class="modal-footer">
				                <button type="button" class="btn btn-primary" data-dismiss="modal"><i class="glyphicon glyphicon-ok"></i> ตกลง</button>    
				        	</div>
				    	</div>
				  	</div>
				</div>
				<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
				    <div class="modal-dialog">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">ผิดพลาด</h4>
				            </div>
				            <div class="modal-body">
				            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
				            	<span id="modal_content_errorModal"></span>
				            </div>
				            <div class="modal-footer">
				                <button type="button" class="btn btn-primary" data-dismiss="modal"><i class="glyphicon glyphicon-ok"></i> ตกลง</button>
				        	</div>
				    	</div>
				  	</div>
				</div>
				<div class="modal fade" id="confirmSaveModal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
				    <div class="modal-dialog">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">ยืนยันการบันทึกข้อมูลกำหนดวันที่ของระบบ</h4>
				            </div>
				            <div class="modal-body">
				            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
				            	<span id="modal_content_confirmSaveModal"></span>
				            </div>
				            <div class="modal-footer">
				                <button onclick="SaveCommand()" type="button"  class="btn btn-primary"><i class="fa fa-floppy-o"></i> ยืนยัน</button>
				                <button onclick="cancel()"  type="button" class="btn btn-danger" data-dismiss="modal"><i class="glyphicon glyphicon-floppy-remove"></i> ยกเลิก</button>
				        	</div>
				    	</div>
				  	</div>
				</div>
				<!-- ### END Modal Popup ### -->	
				
			<div id="footer-detail">Copyright © สงวนลิขสิทธิ์ พ.ศ.2557 โดยการประปานครหลวง</div>
		</div>
	</div>
</div>
</body>
</html>